export function getTasakiBookApi(vm) {
    let getTasakiBookApi = {
        // 场次列表
        getSession: (params = {}) =>
            vm.$u.get(
                `getSession`,
                params,
                {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 预约
        joinSession: (params = {}) =>
            vm.$u.post(
                `joinSession`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 修改预约
        changeSession: (params = {}) =>
            vm.$u.post(
                `changeSession`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 取消预约
        cancelSession: (params = {}) =>
            vm.$u.post(
                `cancelSession`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
    };
    return getTasakiBookApi;
}